package com.huanri.Swing;

import java.io.Serializable;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTable;

/**
 * @author Nemo
 * @date 2012-7-19 at MyCode
 */
public class UI extends JPanel implements Serializable{

	private JPanel panel;
	private JDialog dialog;
	private JTable table ;
	private JButton confirm;
	private JButton reset;
	private static final long serialVersionUID = 8003160886865936006L;

	public UI(){
		super();
		initUI();
	}
	public void initUI(){
		if(panel == null){
			panel = new JPanel();
			panel.setSize(300, 80);
//			panel.add(getDialog());
			panel.setEnabled(true);			
		}
	}
	private JDialog getDialog(){
		if(dialog == null){
			dialog = new JDialog();
			dialog.setSize(280, 70);
		}
		return dialog;
	}
}
